home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / CIncludes / Folders.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-11  |  2.5 KB  |  86 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Folders.h
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. */
  16.  
  17. #ifndef __FOLDERS__
  18. #define __FOLDERS__
  19.  
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24. /*    #include <ConditionalMacros.h>                                */
  25.  
  26. #ifndef __FILES__
  27. #include <Files.h>
  28. #endif
  29. /*    #include <MixedMode.h>                                        */
  30. /*    #include <OSUtils.h>                                        */
  31. /*        #include <Memory.h>                                        */
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37. #if GENERATINGPOWERPC
  38. #pragma options align=mac68k
  39. #endif
  40.  
  41. #ifdef __CFM68K__
  42. #pragma lib_export on
  43. #endif
  44.  
  45.  
  46. enum {
  47.     kOnSystemDisk                = 0x8000,
  48.     kCreateFolder                = true,
  49.     kDontCreateFolder            = false,
  50.     kSystemFolderType            = 'macs',                        /* the system folder */
  51.     kDesktopFolderType            = 'desk',                        /* the desktop folder; objects in this folder show on the desk top. */
  52.     kTrashFolderType            = 'trsh',                        /* the trash folder; objects in this folder show up in the trash */
  53.     kWhereToEmptyTrashFolderType = 'empt',                        /* the "empty trash" folder; Finder starts empty from here down */
  54.     kPrintMonitorDocsFolderType    = 'prnt',                        /* Print Monitor documents */
  55.     kStartupFolderType            = 'strt',                        /* Finder objects (applications, documents, DAs, aliases, to...) to open at startup go here */
  56.     kAppleMenuFolderType        = 'amnu',                        /* Finder objects to put into the Apple menu go here */
  57.     kControlPanelFolderType        = 'ctrl',                        /* Control Panels go here (may contain INITs) */
  58.     kExtensionFolderType        = 'extn',                        /* Finder extensions go here */
  59.     kFontsFolderType            = 'font',                        /* Fonts go here */
  60.     kPreferencesFolderType        = 'pref',                        /* preferences for applications go here */
  61.     kTemporaryFolderType        = 'temp'
  62. };
  63.  
  64. #if SystemSevenOrLater
  65. extern pascal OSErr FindFolder(short vRefNum, OSType folderType, Boolean createFolder, short *foundVRefNum, long *foundDirID)
  66.  TWOWORDINLINE(0x7000, 0xA823);
  67. #else
  68. extern pascal OSErr FindFolder(short vRefNum, OSType folderType, Boolean createFolder, short *foundVRefNum, long *foundDirID);
  69. #endif
  70. extern pascal OSErr ReleaseFolder(short vRefNum, OSType folderType)
  71.  TWOWORDINLINE(0x700B, 0xA823);
  72.  
  73. #ifdef __CFM68K__
  74. #pragma lib_export off
  75. #endif
  76.  
  77. #if GENERATINGPOWERPC
  78. #pragma options align=reset
  79. #endif
  80.  
  81. #ifdef __cplusplus
  82. }
  83. #endif
  84.  
  85. #endif /* __FOLDERS__ */
  86.